def set_register(s):
    if ' ' in s:
        return s.upper()
    else:
        return s.lower()

print(set_register('Hello word'))
print(set_register('Hello,word'))

def get_sum(a=0, b=0, c=0, d=1):
    return a + b + c + d

print(get_sum(1, 2, d=5))

def get_sum(*args):
    return sum(args)

print(get_sum(1, 5, 10))


def func(**kvargs):
    print(kvargs)

func(a=1, b=5, c=20)


def f(a, x, *args, **kvargs):
    print(a)
    print(x)
    print(args)
    print(kvargs)

f(1, 2, 3, 4, b='test', c='hi')
f(1, 2)
